﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DanhSachSanPham.ascx.cs"
    Inherits="UserControl_DanhSachSanPham" %>
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<div class="title-bg">
    <div id="page-main-content-title" style="outline: 0;">
        &nbsp;<asp:Label ID="lblTitle" runat="server" CssClass="title-item" Text='Sản phẩm'></asp:Label>
    </div>
</div>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td colspan="2">
            <asp:DataList ID="DataList1" runat="server" DataKeyField="MaSanPham" Style="text-align: center"
                RepeatColumns="3" RepeatDirection="Horizontal" Width="100%">
                <ItemStyle Width="245px" />
                <ItemTemplate>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="11">
                                            <img src="image/tbl_pro1.jpg" width="11" height="11">
                                        </td>
                                        <td background="image/tbl_pro2.jpg">
                                            <img src="image/tbl_pro2.jpg" width="1" height="11">
                                        </td>
                                        <td width="11">
                                            <img src="image/tbl_pro3.jpg" width="11" height="11">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="11" style="background-image: url(image/tbl_pro4.jpg); background-repeat: repeat-y;
                                            background-position: left top">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Label ID="Label2" runat="server" Style="font-weight: 700; color: #060606; font-size: 14px"
                                                Text='<%# Eval("MaSanPham") %>' />
                                        </td>
                                        <td width="11" style="background-image: url(image/tbl_pro5.jpg); background-repeat: repeat-y;
                                            background-position: right top">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="11" style="background-image: url(image/tbl_pro4.jpg); background-repeat: repeat-y;
                                            background-position: left top">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <div align="center">
                                                <asp:ImageButton ID="ImageButton1" runat="server" Height="220px" ImageUrl='<%# Eval("URL") %>'
                                                    PostBackUrl='<%# "~/SanPham.aspx?ID="+Eval("MaSanPham") %>' ToolTip="Click để xem chi tiết"
                                                    Width="220px" />
                                            </div>
                                        </td>
                                        <td width="11" style="background-image: url(image/tbl_pro5.jpg); background-repeat: repeat-y;
                                            background-position: right top">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="11" style="background-image: url(image/tbl_pro4.jpg); background-repeat: repeat-y;
                                            background-position: left top">
                                            &nbsp;
                                        </td>
                                        <td height="20" class="info">
                                            <span class="style1" style="text-align: left">Thể loại : <span class="style1">
                                                <asp:Label ID="Label13" runat="server" Text='<%# Eval("TenLoai") %>'></asp:Label>
                                            </span>
                                                <br />
                                            </span>Giá :&nbsp;<asp:Label ID="Label15" runat="server" Style="color: #FF0000" Text='<%# Eval("GiaBan"," {0:N0} ") %>'></asp:Label>
                                            &nbsp;VNĐ
                                        </td>
                                        <td width="11" style="background-image: url(image/tbl_pro5.jpg); background-repeat: repeat-y;
                                            background-position: right top">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="11">
                                            <img src="image/tbl_pro6.jpg" width="11" height="36">
                                        </td>
                                        <td background="image/tbl_pro7.jpg" style="padding-bottom: 3px">
                                            <div align="center">
                                                <table border="0" cellspacing="0" cellpadding="0">
                                                </table>
                                            </div>
                                        </td>
                                        <td width="11">
                                            <img src="image/tbl_pro8.jpg" width="11" height="36">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>
<br />
<asp:Label ID="lblNull" runat="server"></asp:Label>
<br />
<cc1:CollectionPager ID="cpPagding" runat="server" ControlCssClass="pagding" BackNextDisplay="HyperLinks"
    BackText="« Back" LabelText="Trang :" MaxPages="30" PageNumbersDisplay="Numbers"
    PageSize="36" ResultsFormat="" SectionPadding="10" SliderSize="10" IgnoreQueryString="False">
</cc1:CollectionPager>
<br />
